package com.sky.merchant.exception;

import lombok.Data;

@Data
public class CustomException extends RuntimeException {
    private int code; // 异常代码

    // 构造方法
    public CustomException(int code, String msg) {
        super(msg); // 调用父类的构造方法设置异常消息
        this.code = code;
    }
}